package application.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import pojo.User;
import application.servier.UserServiceImpl;

@RestController


public class providerController {
    @Autowired
    private UserServiceImpl userService;

    @RequestMapping("findId/{id}")
    public User getUser(@PathVariable Integer id){
        return userService.gerUser(id);
    }


}
